<!DOCTYPE html>
<html>
<head>
    <title>测试</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
          charset="UTF-8"/>

    <script src="../js/vconsole.min.js"></script>
    <script>
    // 初始化
    var vConsole = new VConsole();
    console.log('init vConsole');
    </script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            text-align: center;
        }

        .btn {
            line-height: 34px;
            text-align: center;
            font-size: 14px;
            border: 1px solid #a83939;
            background-color: #fff;
            margin-bottom: 20px;
            padding: 0 10px;
        }

        .message {
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: 10px;
            font-size: 14px;
            color: #000;
        }

    </style>

</head>
<body>
<div class="box">
    <div class="message" id="message1" style="background-color: chocolate"></div>
    <button class="btn" onclick="getChatBotInitParams()">getChatBotInitParams</button>
    <div class="message" id="message" style="background-color: chocolate"></div>

    <br/>


    <br/>
</div>
<script>


function getChatBotInitParams() {

    JSBridge.call('getChatBotInitParams', {

    }, function(result) {
        document.getElementById('message').innerHTML = JSON.stringify(result);
        console.log(JSON.stringify(result));
    });
}



</script>

</body>
</html>
